package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.yishun.springboot.pojo.GeneralRecordNumBeans;
import com.yishun.springboot.pojo.YzwProjectAttendanceListNew;

/**
 * 项目工人考勤记录 (本mapper经更新后不更改只添加，见以下新增方法字样)
 * @date   2021年2月27日下午9:06:22 
 * @author XiaoHuang
 *
 */
@Component
public interface YzwProjectAttendanceListNewMapper {

	//新增 2021.2.27 通过项目号查找考勤记录
	List<YzwProjectAttendanceListNew>  selectNowWeekRecordByProjectSysNo(int ProjectSysNo);
	
	//新增 2021.2.27 考勤机有哪些
	List<YzwProjectAttendanceListNew>  selectEquipmentSerialNumber(int ProjectSysNo);
	
	//实时同步所有云筑网的考勤数据
	int insertAll(List<YzwProjectAttendanceListNew> projectAttendanceListNew);

	//插入一条考勤数据（目前没用到）
	int insertOneRecordProjectAttendanceListNew(YzwProjectAttendanceListNew projectAttendanceListNew);

	// 查询重复的数据
	int selectByRepeat(YzwProjectAttendanceListNew projectAttendanceListNew);

	/**
	 * 打卡记录
	 * 
	 * @return
	 */
	List<Map<String, Object>> clockCard(@Param(value="beginTime")String beginTime,@Param(value="endTime")String endTime,@Param(value="pageSize")Object pageSize,@Param(value="projectCode")Object projectCode);

	// 删除今天的考勤表数据，干嘛呢？当然是更新了
	int delTodayDataToProjectAttendanceListNew();
	
	// 新平台--根据项目号查询七日内考勤
	List<Map<String, Object>> selectServerDayAttendancelistByProjectCode(@Param(value="ProjectCode")int ProjectCode);

}